package com.sparrows.pirates.model;

import java.util.ArrayList;

/**
 * Player contains all player controlled data. Resources, a ship, crew members etc.
 * @author krummer
 *
 */
public class Player {
	private String name;
	private ArrayList<CrewMember> crew;
	private Ship ship;
	
	//resources
	private float gold;
	private float wood;
	private float food;
	
	/*
	 * A new player is created with a name.
	 * Other resources are initialized as zero.
	 */
	public Player(String name) {
		this.setName(name);
		this.setShip(null);
		this.setCrew(new ArrayList<CrewMember>());
		
		
		this.setGold(0.f);
		this.setWood(0.f);
		this.setFood(0.f);
	}
	
	//THE BORING GETTER SETTER AREA

	public ArrayList<CrewMember> getCrew() {
		return crew;
	}

	public void setCrew(ArrayList<CrewMember> crew) {
		this.crew = crew;
	}

	public Ship getShip() {
		return ship;
	}

	public void setShip(Ship ship) {
		this.ship = ship;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public float getGold() {
		return gold;
	}

	public void setGold(float gold) {
		this.gold = gold;
	}

	public float getWood() {
		return wood;
	}

	public void setWood(float wood) {
		this.wood = wood;
	}

	public float getFood() {
		return food;
	}

	public void setFood(float food) {
		this.food = food;
	}
}
